Skip to content

feat(pool)!: remove the share switch; the hub offers the pool nothing - #169

Merged
7schmiede merged 4 commits into
mainfrom
fix/share-windows
Oct 21, 2026
Merged

7schmiede merged 4 commits into
mainfrom
fix/share-windows

Conversation

@7schmiede

@7schmiede 7schmiede commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Replaces the first version of this PR, which only disabled the switch on Windows. As decided, the share option is removed from the UI entirely: it did not work in either case.

Problem

The share switch only reported capacity; it never started a node agent. No member could start a lane on a machine that only switched it on:

The pool still showed such machines as offering capacity ("6.6 CPU · 11.2 GB").

Change

  • Dashboard: the share tile in the sidebar and "This machine shares" in the pool area are gone, together with ShareSwitch.vue, setShare and the mock's switch.
  • Hub (share.rs):
    • It keeps reporting the machine (online, what it has, GPUs, its devstack) and offers nothing (sharing: false).
    • PUT /hub/pool/share is gone (405).
    • GET keeps what the pool area needs (the coordinator's version, the last report) and says why nothing is offered (unavailable).
    • The share settings are no longer read.
  • Docs:
    • ADR-0031 point 3 amended: no share switch; a machine shares by running a node agent.
    • pool.md, dashboard-api.md, SECURITY.md, CHANGELOG (Removed).

Unchanged: nodes with an agent (servers) offer and run lanes as before; machines still start their own lanes in the pool.

Follow-ups

Tested

🤖 Generated with Claude Code

A lane is a Linux container with a Linux devstack in it (ADR-0028), which
a Windows machine cannot run yet: its share switch only reported capacity
that nobody could use, and the pool showed it as shared. On Windows the
hub now offers nothing and reports `sharing: false`, refuses to switch
sharing on (409 with the reason), and tells the dashboard why
(`unavailable` in /hub/pool/share), which disables the switch and links
#168. The machine still starts its own lanes in the pool.

Refs #168

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The share switch reported capacity but never started a node agent, so no
member could start a lane on a machine that only switched it on, on Linux
neither; on Windows none can run at all (#168). It is gone from the
dashboard (sidebar tile, pool area). The hub still reports the machine
(online, what it has, GPUs, its devstack) and offers nothing; `PUT
/hub/pool/share` is gone, `GET` keeps the report's state and says why
(`unavailable`). A machine runs other members' lanes with `devstack node
agent`, granted by an admin; a switch that starts the agent is #171.
ADR-0031 point 3 is amended.

Refs #168, #171

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede 7schmiede changed the title fix(pool): the share switch on Windows is off and says why feat(pool)!: remove the share switch; the hub offers the pool nothing Oct 21, 2026
7schmiede added a commit that referenced this pull request Oct 21, 2026
The share switch goes away (#169); the guest lanes get a tile of their
own, shown only while there are any.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7schmiede added a commit that referenced this pull request Oct 21, 2026
The share switch goes away (#169); the guest lanes get a tile of their
own, shown only while there are any.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7schmiede added a commit that referenced this pull request Oct 21, 2026
* feat(pool): show lanes of other members that run on this machine

Whoever sits at a machine that runs the pool's lanes sees that someone
else's code runs on it. The hub reads the pool's leases after each share
report (every 15 s per pool); those whose node is this machine and whose
owner is someone else are its guest lanes. They go to the dashboard on
/hub/events (`guests`):

- a banner below the top bar on every page, with a link to the pool area;
  it can be hidden until a lane comes or goes,
- the share tile in the sidebar: how many, whose, what they reserved,
- "On this machine" in the pool area: lane, repository, owner, state,
  since when, what it reserved.

A guest lane that starts running notifies the desktop (ADR-0045, new kind
`guest_lane`, on by default); a click opens the pool area
(`devstack://open?page=pool`). What runs when the hub first reads a pool is
the baseline. Per-lane usage and ending a guest lane from the machine it
runs on are not part of this.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(ui): guest lanes in their own sidebar tile, not the share tile

The share switch goes away (#169); the guest lanes get a tile of their
own, shown only while there are any.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(adr): ADR-0045 amended for guest_lane, not rewritten

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	crates/devstack-hub/src/share.rs
#	crates/devstack/tests/hub.rs
#	ui/src/api/mock/index.ts
#	ui/src/components/Sidebar.vue
#	ui/src/views/PoolView.vue
@7schmiede
7schmiede merged commit 4b4b12c into main Oct 21, 2026
@7schmiede 7schmiede mentioned this pull request Oct 21, 2026
@7schmiede
7schmiede deleted the fix/share-windows branch October 23, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant